﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace StickFigureKarateFighterClassLibrary {
    public partial class KarateFighter : UserControl {
        public KarateFighter() {
            InitializeComponent();
        }

        public void changeColor(Color color) {
            SolidColorBrush c = new SolidColorBrush(color);
            Head.Stroke = c;
            Head.Fill = c;
            Body.Stroke = c;
            LeftLowerArm.Stroke = c;
            LeftLowerLeg.Stroke = c;
            LeftUpperArm.Stroke = c;
            LeftUpperLeg.Stroke = c;
            RightLowerArm.Stroke = c;
            RightLowerLeg.Stroke = c;
            RightUpperArm.Stroke = c;
            RightUpperLeg.Stroke = c;
        }

        public void ThrowSideKick() {
            SideKick.Begin();
        }

        public void ThrowBackFist() {
            BackFist.Begin();
        }

        public void DoJumpKick() {
            JumpKick.Begin();
        }

    }
}
